<?php
class transactionkwitansi_model extends CI_Model{
	private $NoKwitansi;
	private $NoFaktur;
	private $Quantity;
	private $Discount;
	private $Ppn;
	private $Amount;
	
	function setNoKwitansi($noKwitansi){
		$this->NoKwitansi = $noKwitansi;
	}
	
	function getNoKwitansi(){
		return $this->NoKwitansi;
	}
	
	function setNoFaktur($faktur){
		$this->NoFaktur = $faktur;
	}
	
	function getNoFaktur(){
		return $this->NoFaktur;
	}
	
	function setQuantity($qty){
		$this->Quantity = $qty;
	}
	
	function getQuantity(){
		return $this->Quantity;
	}
	
	function setDiscount($disc){
		$this->Discount = $disc;
	}
	
	function getDiscount(){
		return $this->Discount;
	}
	
	function setPPN($ppn){
		$this->Ppn = $ppn;
	}
	
	function getPPN(){
		return $this->Ppn;
	}
	
	function setAmount($amt){
		$this->Amount = $amt;
	}
	
	function getAmount(){
		return $this->Amount;
	}
	
	function __construct(){
		parent::__construct();
	}
	
	function insert(){
		$data = array(
			'NoKwitansi' => $this->getNoKwitansi(),
			'NoFaktur' => $this->getNoFaktur(),
			'Quantity' => $this->getQuantity(),
			'Discount' => $this->getDiscount(),
			'Ppn' => $this->getPPN(),
			'Amount' => $this->getAmount()
		);
		$this->db->insert('transaction_kwitansi',$data);
	}
}